<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>命名空间</title>
</head>

<body>

</body>
<script src="./namespace.js"></script>
<script src="./namespace_sub.js"></script>
<script>
  console.log(namespace);
  var p1 = new namespace.PersonInfo({ name: '张三', gender: '男' });
  namespace.personInfoUtil.show(p1);
</script>

</html>